Add systemvmtemplate arm64 build support#9437
Conversation
0894822 to
400e1ee
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9437 +/- ##
===========================================
Coverage 15.07% 15.08%
+ Complexity 11169 11168 -1
===========================================
Files 5405 5406 +1
Lines 472677 472699 +22
Branches 60049 57658 -2391
===========================================
+ Hits 71269 71287 +18
- Misses 393479 393483 +4
Partials 7929 7929
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Nice! |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json
Show resolved
Hide resolved
|
@rohityadavcloud Thanks for picking this one up! Please let me know in case i can support somehow. |
|
Thanks for replying @StepBee I've posted a question above. I'm trying to have the Jenkins job used to x86 systemvmtemplate build also build for aarch64, where I'm getting this error: Host in Ubuntu 20.04 x86_64 VM (same one used to build the x86-64 systemvmtemplates) Any ideas? |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json
Show resolved
Hide resolved
StepBee
left a comment
There was a problem hiding this comment.
The code looks good to me.
I tested the changes of @rohityadavcloud and had a successful systemvm build.
kiranchavala
left a comment
There was a problem hiding this comment.
On Ubuntu 24.04 LTS and packer version v1.11.1
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
❯ packer --version
Packer v1.11.1
- The build for x86_64 on x86_64 system is timing out
bash build.sh systemvmtemplate 4.19.1.0 x86_64.
==> qemu: Waiting for SSH to become available...
==> qemu: Timeout waiting for SSH.
==> qemu: Deleting output directory...
Build 'qemu' errored after 31 minutes 41 seconds: Timeout waiting for SSH.
==> Wait completed after 31 minutes 41 seconds
==> Some builds didn't complete successfully and had errors:
--> qemu: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
- No issue observed when building aarch64 tempaplate on x86_64 system
bash build.sh systemvmtemplate 4.19.1.0 aarch64
|
@kiranchavala there's some problem with the packer version; can you try v1.9.x or v1.8.x ? This works in a Jenkins job that runs on Ubuntu 20.04 with packer v1.9.5, job log attached: |
Hi @rohityadavcloud tried with packer versions 1.8 and 1.9 on Ubuntu 24.04 , still build fails for bash build.sh systemvmtemplate 4.19.1.0 x86_64. There is no issue with ubuntu 22.04 and the recent packer version 1.11.1. Its fine if we can document this |
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM, tested on ubuntu 22.0.4 x86_64 and on raspberry pi 4 , packer version 1.11.1
The systemvmtemplate generated successfully
bash build.sh systemvmtemplate 4.19.1.0 x86_64
bash build.sh systemvmtemplate 4.19.1.0 aarch64
* Move and copy files to new filenames * Adjust bash scripts to support arm64 * change preseed for arm64 to create EFI partition * change packer template files to support arm64 * Correct preseed file name in x86_64 packer template * fixes Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * try different machine cpu Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * don't accelerate KVM for different arch (arm64 vm on amd64 host) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix building arm64 on x86 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * Update README.md --------- Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Co-authored-by: StepBee <stephan@bienek.org>
|
I rebuilt systemvm template today, got the following templates do we need to update URLs in engine/schema/pom.xml ? |


This add support for building arm64 systemvmtemplate, which is basically branch of https://github.com/StepBee/cloudstack/tree/add_systemvmtemplate_arm64_support and work by @StepBee
Types of changes